package com.ruibo.modules.system.repository;

import com.ruibo.modules.system.domain.SysUser;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * (SysUser)表数据库访问层
 *
 * @author sunfeng
 * @since 2020-04-17 13:33:19
 */
public interface SysUserRepository extends JpaRepository<SysUser ,Long>, JpaSpecificationExecutor<SysUser> {

    SysUser findByUserName(String userName);

    int countByUserName(String userName);

    int countByPhoneNumber(String phoneNumber);

    int countByEmail(String email);
}
